interface SeatType {
    code: string;
    desc: string;
    val: string;
}

export const SEAT_TYPE: { [key in 'YDZ' | 'EDZ' | 'GZ' | 'RW' | 'YW']: SeatType } = {
    YDZ: {code: "1", desc: "一等座", val: "0.4"},
    EDZ: {code: "2", desc: "二等座", val: "0.3"},
    GZ: {code: "3", desc: "商务座", val: "0.8"},
    RW: {code: "4", desc: "软卧", val: "0.6"},
    YW: {code: "5", desc: "硬卧", val: "0.5"},
};
type SeatTypeArray = Array<SeatType>;

export const SEAT_TYPE_ARRAY: SeatTypeArray = [
    {code: "1", desc: "一等座", val: "0.4"},
    {code: "2", desc: "二等座", val: "0.3"},
    {code: "3", desc: "商务座", val: "0.8"},
    {code: "4", desc: "软卧", val: "0.6"},
    {code: "5", desc: "硬卧", val: "0.5"},
];